import * as ElIcon from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/es/locale/lang/zh-cn'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
const app = createApp(App)
    .use(router)
    .use(ElementPlus, {locale})

Object.keys(ElIcon).forEach(function (key){
    app.component(ElIcon[key].name, ElIcon[key])
})
app.mount('#app')
